{include file="public/header" /}
<style type="text/css">
	.layui-input, .layui-textarea{ width: 90%; }
	.layui-form-select .layui-edge{ left: 76%; }
	.input_tips{float: left;width: 50%}
	.tips{float: left;margin-top: .7rem}
</style>
</head>
<body>
<div class="x-body">
	<form action="{:URL(request()->controller().'/save',['id'=>$info.id,'type'=>$Request.param.type])}" class="layui-form layui-form-pane" id="form">

		<div class="layui-form-item">
			<label class="layui-form-label"><span class="x-red">*</span>等级名称</label>
			<div class="layui-input-block">
				<input type="text" name="title" value="{$info.title}" placeholder="请输入等级名称" lay-verify="required" class="layui-input"/>
			</div>
		</div>
		{if $Request.param.type == 1}
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>红包区间</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input input_tips" placeholder="最低" name="red_min" value="{$info.red_min*100}">
				<span class="tips">&nbsp;%&nbsp; - &nbsp;&nbsp; </span>
				<input type="text" class="layui-input input_tips" placeholder="最高" name="red_max" value="{$info.red_max*100}">
				<span class="tips">&nbsp;% </span>
			</div>

		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>投资金额</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input input_tips" placeholder="请输入投资金额" name="amount" value="{$info.amount}">
				<span class="tips">&nbsp;元&nbsp;</span>
			</div>
		</div>

		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>封顶倍数</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input input_tips" placeholder="请输入封顶倍数" name="capping" value="{$info.capping}">
				<span class="tips">&nbsp;倍&nbsp;</span>
			</div>
		</div>
		{elseif $Request.param.type == 2}
		<!-- <div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>直推奖</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input input_tips" placeholder="直推奖" name="rec1" value="{$info.rec1*100}">
				<span class="tips">%</span>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>间推奖</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input input_tips" placeholder="直推低级别" name="rec2" value="{$info.rec2*100}">
				<span class="tips">%</span>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>续费直推奖</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input input_tips" placeholder="直推奖" name="renew_rec1" value="{$info.renew_rec1*100}">
				<span class="tips">%</span>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>续费间推奖</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input input_tips" placeholder="直推低级别" name="renew_rec2" value="{$info.renew_rec2*100}">
				<span class="tips">%</span>
			</div>
		</div> -->
		<!-- <div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>总业绩</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input input_tips" placeholder="总业绩" name="team_amount" value="{$info.team_amount}">
				<span class="tips"></span>
			</div>
		</div> -->
		
		{elseif $Request.param.type == 3}
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>享受新增业绩</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input input_tips" placeholder="享受新增业绩百分比" name="tp" value="{$info.tp*100}">
				<span class="tips">&nbsp;%&nbsp;</span>
			</div>
		</div>
		{elseif $Request.param.type == 4}
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>所需小区业绩</label>
			<div class="layui-input-block">
				<input type="number" class="layui-input input_tips" placeholder="所需小区业绩" name="amount" value="{$info.amount/10000}">
				<span class="tips">&nbsp;万&nbsp;</span>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>享受新增业绩</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input input_tips" placeholder="享受新增业绩百分比" name="tp" value="{$info.tp*100}">
				<span class="tips">&nbsp;%&nbsp;</span>
			</div>
		</div>
		{elseif $Request.param.type == 5}
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>所需直推人数</label>
			<div class="layui-input-block">
				<input type="number" class="layui-input input_tips" placeholder="所需直推人数" name="count_zt" value="{$info.count_zt}">
				<span class="tips">&nbsp;人&nbsp;</span>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>所需团队人数</label>
			<div class="layui-input-block">
				<input type="number" class="layui-input input_tips" placeholder="所需团队人数" name="count_team" value="{$info.count_team}">
				<span class="tips">&nbsp;人&nbsp;</span>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>所需团队业绩</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input input_tips" placeholder="所需团队业绩" name="team_amount" value="{$info.team_amount}">
				<span class="tips">&nbsp;元&nbsp;</span>
			</div>
		</div>
		<?php for($i=1;$i<=5;$i++){?>
		{if $i == $info.id-1}
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>所需V{$i}团长级别</label>
			<div class="layui-input-block">
				<input type="number" class="layui-input input_tips" placeholder="所需V{$i}级别人数" name="v{$i}" value="<?php echo $info['v'.$i]?>">
				<span class="tips">&nbsp;人&nbsp;</span>
			</div>
		</div>
		{/if}
		<?php }?>
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>享受新增红包</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input input_tips" placeholder="享受新增红包" name="tp" value="{$info.tp*100}">
				<span class="tips">&nbsp;%&nbsp;</span>
			</div>
		</div>
		{elseif $Request.param.type == 6}
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>所需金豆</label>
			<div class="layui-input-block">
				<input type="number" class="layui-input input_tips" placeholder="所需金豆" name="gold_bean" value="{$info.gold_bean}">
				<span class="tips">&nbsp;个&nbsp;</span>
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>享受加权分红</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input input_tips" placeholder="享受享受加权分红" name="tp" value="{$info.tp*100}">
				<span class="tips">&nbsp;%&nbsp;</span>
			</div>
		</div>
		{elseif $Request.param.type == 7}
	
		<!-- <div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>投资金额</label>
			<div class="layui-input-block">
				<input type="number" class="layui-input input_tips" placeholder="投资金额" name="investment" value="{$info.investment}">
			</div>
		</div> -->
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>直推人数</label>
			<div class="layui-input-block">
				<input type="number" class="layui-input input_tips" placeholder="" name="rec_num" value="{$info.rec_num}">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>佣金累计</label>
			<div class="layui-input-block">
				<input type="number" class="layui-input input_tips" placeholder="" name="bonus_sum" value="{$info.bonus_sum}">
			</div>
		</div>
		<!-- <div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>报单直推奖(元)</label>
			<div class="layui-input-block">
				<input type="number" class="layui-input input_tips" placeholder="" name="rec_award1" value="{$info.rec_award1}">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>复购直推奖(元)</label>
			<div class="layui-input-block">
				<input type="number" class="layui-input input_tips" placeholder="" name="rec_award2" value="{$info.rec_award2}">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>报单培育奖(元)</label>
			<div class="layui-input-block">
				<input type="number" class="layui-input input_tips" placeholder="" name="grade1" value="{$info.grade1}">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>复购培育奖(元)</label>
			<div class="layui-input-block">
				<input type="number" class="layui-input input_tips" placeholder="" name="grade2" value="{$info.grade2}">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"> <span class="x-red">*</span>加权分红(元)</label>
			<div class="layui-input-block">
				<input type="number" class="layui-input input_tips" placeholder="" name="reward" value="{$info.reward}">
			</div>
		</div> -->
		{/if}
		<div class="layui-form-item" style="text-align: center;">
			<button class="layui-btn" lay-filter="save" lay-submit formObj="#form">保存</button>
		</div>
	</form>
</div>
</body>
</html>